package org.czl.leetCode1;

public class l2390 {
    public String removeStars(String s) {
        char[] stack = new char[100000];
        int index = 0;
        for(int i = 0 ;i < s.length(); i++){
            if(s.charAt(i) == '*')
                index--;
            else
                stack[index ++] = 1;
        }
        return new String(stack, 0, index);
    }
}
